﻿<?xml version="1.0" encoding="utf-8" ?>
<!-- Cette section contient les parametres de configuration de Log4Nnet permettant de tracer les logs -->
<log4net debug="true">
  <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
    <file value="Logs\Trace.log" />
    <appendToFile value="true" />
    <rollingStyle value="Size" />
    <maxSizeRollBackups value="10" />
    <maximumFileSize value="100KB" />
    <staticLogFileName value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <header value="[START]&#xD;&#xA;&#xD;&#xA;" />
      <footer value="&#xD;&#xA;[ END ]&#xD;&#xA;&#xD;&#xA;" />
      <conversionPattern value="%date{dd/MM/yyyy HH:mm:ss} [%-5level] %logger - %message%newline" />
    </layout>
  </appender>
  <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender, log4net">
    <layout type="log4net.Layout.PatternLayout">
      <header value="[START]&#xD;&#xA;&#xD;&#xA;" />
      <footer value="&#xD;&#xA;[ END ]&#xD;&#xA;&#xD;&#xA;" />
      <conversionPattern value="%date{dd/MM/yyyy HH:mm:ss} [%-5level] %logger [%property{UserName}] - %message%newline" />
    </layout>
  </appender>
  <appender name="NHibernateFileLog" type="log4net.Appender.RollingFileAppender">
    <file value="Logs/nhibernate.txt" />
    <appendToFile value="true" />
    <rollingStyle value="Size" />
    <maxSizeRollBackups value="10" />
    <maximumFileSize value="100KB" />
    <staticLogFileName value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n"  />
    </layout>
  </appender>
  <appender name="NgileadFileLog" type="log4net.Appender.RollingFileAppender">
    <file value="Logs/spring.txt" />
    <appendToFile value="true" />
    <rollingStyle value="Size" />
    <maxSizeRollBackups value="10" />
    <maximumFileSize value="100KB" />
    <staticLogFileName value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%d{HH:mm:ss.fff} [%t] %-5p %c - %m%n"  />
    </layout>
  </appender>
  <appender name="TraceAppender" type="log4net.Appender.TraceAppender">
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%-5level %logger [%property{UserName}] - %message%newline" />
    </layout>
  </appender>

  <!--
  Level par ordre de priorité
  
  ALL
  DEBUG
  INFO
  WARN => niveau par défaut chez le client
  ERROR
  FATAL
  OFF
  -->


  <logger name="Ngilead.Core">
    <level value="DEBUG"/>
    <appender-ref ref="ConsoleAppender" />
  </logger>
  <logger name="Ngilead.Host">
    <level value="WARN"/>
    <appender-ref ref="RollingFileAppender" />
  </logger>
  <logger name="Ngilead.Nhibernate">
    <level value="WARN" />
    <appender-ref ref="ConsoleAppender"/>
  </logger>
  <logger name="Ngilead.Test">
    <level value="DEBUG" />
    <appender-ref ref="ConsoleAppender"/>
  </logger>
</log4net>

